package com.zdpx.pxframework.system.api;

import com.zdpx.pxframework.core.vo.Result;
import com.zdpx.pxframework.security.annotation.InnerAuth;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import java.util.List;


/**
 * 角色部门数据权限 接口Swagger Api
 *
 * @Description:
 * @Author: Cheng Xiaoxiao
 * @Date: 2022-05-26 16:43:27
 */
@Api(tags = "角色部门数据权限模块", description = "实现对角色部门数据权限数据的基本操作")
public interface RoleDepartmentDataScopeControllerApi {


    /**
     * 根据角色ID列表查询所关联的部门ID列表
     *
     * @param roleId 角色ID
     * @return 结果信息
     */
    @InnerAuth
    @ApiOperation(value = "根据角色ID查询所关联的部门ID列表")
    Result<List<String>> listDeptsByRoleIds(@ApiParam(name = "id", value = "岗位ID", required = true, type = "path") List<String> roleId);
}
